
package com.jf.cloud.combo.bo;

import cn.throwx.canal.gule.annotation.CanalModel;
import cn.throwx.canal.gule.common.FieldNamingPolicy;

import java.util.Date;

/**
 * @author zz
 * @date 2022/8/30 13:36
 */
@CanalModel(database = "mall4cloud_combo", table = "combo", fieldNamingPolicy = FieldNamingPolicy.LOWER_UNDERSCORE)
public class ComboBO {
    /**
     * 套装id
     */
    private Long comboId;

    /**
     * 套餐名称
     */
    private String name;

    /**
     * 活动开始时间
     */
    private Date startTime;

    /**
     * 活动结束时间
     */
    private Date endTime;

    /**
     * 主商品id
     */
    private Long mainSpuId;

    /**
     * 套餐价格
     */
    private Long price;

    /**
     * 销量
     */
    private Integer soldNum;

    /**
     * 状态 -1：已删除 0：关闭 1:进行中
     */
    private Integer status;

    /**
     * 店铺id
     */
    private Long shopId;

    public Long getComboId() {
        return comboId;
    }

    public void setComboId(Long comboId) {
        this.comboId = comboId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Long getMainSpuId() {
        return mainSpuId;
    }

    public void setMainSpuId(Long mainSpuId) {
        this.mainSpuId = mainSpuId;
    }

    public Long getPrice() {
        return price;
    }

    public void setPrice(Long price) {
        this.price = price;
    }

    public Integer getSoldNum() {
        return soldNum;
    }

    public void setSoldNum(Integer soldNum) {
        this.soldNum = soldNum;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    @Override
    public String toString() {
        return "ComboBO{" +
                "comboId=" + comboId +
                ", name='" + name + '\'' +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", mainSpuId=" + mainSpuId +
                ", price=" + price +
                ", soldNum=" + soldNum +
                ", status=" + status +
                ", shopId=" + shopId +
                '}';
    }
}
